﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>arguments</title>


    <!-- WinJSContrib.Core references -->
    <script src="./scripts/jquery-2.1.1.js"></script>
    <script src="./scripts/winjscontrib/jquery.mcnext.WinJS.js"></script>
    <script src="./scripts/winjscontrib/mcnext.ui.utils.js"></script>
    <script src="./scripts/winjscontrib/mcnext.ui.bindings.js"></script>

    <link href="arguments.css" rel="stylesheet" />
    <script src="arguments.js"></script>
</head>
<body>
    <div class="arguments fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">parameterized bindings</span>
            </h1>
            <div class="codelink" data-codepage="./pages/bindings/arguments/arguments"><span class="symbol">&#xE160;</span><span class="text">show me the code !</span></div>
        </header>
        <section class="desc-screen" aria-label="Main content" role="main">
            <div class="bloc-description">
                <p>The library has a mecanism to pass arguments to bindings. It's usefull for some common scenarios like formatting data</p>
                <p>Parameters are given by a data-win-bind-args attribute, containing a true JSON object.</p>
            </div>
            <div class="bloc-content">
                <div class="split">
                    <div>
                        <h3>ellipse at 50 characters</h3>
                        <p data-win-bind="innerText : someLongText MCNEXT.Bindings.toEllipsisized" data-win-bind-args='{ "ellipsisize" : 50}'></p>
                        <h3>ellipse at 70 characters</h3>
                        <p data-win-bind="innerText : someLongText MCNEXT.Bindings.toEllipsisized" data-win-bind-args='{ "ellipsisize" : 70}'></p>
                        <h3>ellipse at 100 characters</h3>
                        <p data-win-bind="innerText : someLongText MCNEXT.Bindings.toEllipsisized" data-win-bind-args='{ "ellipsisize" : 100}'></p>

                    </div>
                    <div>
                        
                    </div>
                </div>
            </div>
        </section>
    </div>
</body>
</html>
